package com.example.listener;

import com.example.entity.Person;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.ItemReadListener;


/**
 * @description
 * @author: ruanchengzhi
 * @create: 2021-07-30 13:46
 **/
public class BatchReaderListener implements ItemReadListener<Person> {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public void beforeRead() {
        logger.info("[op:batchReaderListener] beforeRead");
    }

    @Override
    public void afterRead(Person person) {

    }

    @Override
    public void onReadError(Exception e) {

    }
}
